package com.qhg.saas_server.service;

import com.github.pagehelper.PageInfo;
import com.qhg.saas_server.mapper.DepartmentMapper;
import com.qhg.saas_server.pojo.Department;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public interface DepartmentService {

    //查询所有部门
    PageInfo SelectAllDepartment(Integer pageNum,Integer pageSize);
    //根据Id搜索部门信息
    Department SelectDyId(Integer departId);
    //插入部门
    void InsertDepartment(Department department);
    //修改状态
    void UpdateDepartmentStatus(Integer departStatus,Integer departId);
    //通过Id修改部门信息
    void UpdataDepartmentById(Department department);
    //删除
    void DeleteDepartmentById(Integer departId);
}
